package com.puti.doctor.domian;

import com.fasterxml.jackson.annotation.JsonFormat;

import com.puti.common.core.annotation.Excel;
import com.puti.common.core.web.domain.BaseEntity;


import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品-订单 商品-订单对象 goods_order
 *
 * @author administrator
 * @date 2021-04-21
 */
public class GoodsOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    private String orderId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String orderPatientId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private String orderGoodsId;

    /** 商品购买属性 0：正常购买
1：秒杀活动 */
    @Excel(name = "商品购买属性 0：正常购买 1：秒杀活动")
    private Long orderGoodsAttributes;

    /** 商品购买数量 */
    @Excel(name = "商品购买数量")
    private String orderGoodsCount;

    /** 总金额 */
    @Excel(name = "总金额")
    private BigDecimal orderOldprice;

    /** 实付金额 */
    @Excel(name = "实付金额")
    private BigDecimal orderNewprice;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    private String goodsName;

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    /** 订单状态 0：等待付款
1：等待发货
2：申请退款
3：交易成功 */
    @Excel(name = "订单状态 0：等待付款 1：等待发货 2：申请退款 3：交易成功")
    private Long orderStatus;

    /** 支付状态 0：未支付
1：已支付 */
    @Excel(name = "支付状态 0：未支付 1：已支付")
    private Long orderPayStatus;

    /** 发货状态 0：未发货
1：已发货 */
    @Excel(name = "发货状态 0：未发货 1：已发货")
    private Long orderShipStatus;

    /** 收货状态 0：未收货
1：已收货 */
    @Excel(name = "收货状态 0：未收货 1：已收货")
    private Long orderReceiptStatus;

    /** 收货状态 0：未收货
     1：已收货 */
    @Excel(name = "评价状态 0：未评价 1：已评价")
    private Long orderEvaluationStatus;


    /** 确认收货状态 0：未确认收货 1已确认收货
    */
    @Excel(name = "评价状态 0：未评价 1：已评价")
    private Long orderConfirmReceipt;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOrderPatientId() {
        return orderPatientId;
    }

    public void setOrderPatientId(String orderPatientId) {
        this.orderPatientId = orderPatientId;
    }

    public String getOrderGoodsId() {
        return orderGoodsId;
    }

    public void setOrderGoodsId(String orderGoodsId) {
        this.orderGoodsId = orderGoodsId;
    }

    public Long getOrderGoodsAttributes() {
        return orderGoodsAttributes;
    }

    public void setOrderGoodsAttributes(Long orderGoodsAttributes) {
        this.orderGoodsAttributes = orderGoodsAttributes;
    }

    public String getOrderGoodsCount() {
        return orderGoodsCount;
    }

    public void setOrderGoodsCount(String orderGoodsCount) {
        this.orderGoodsCount = orderGoodsCount;
    }

    public BigDecimal getOrderOldprice() {
        return orderOldprice;
    }

    public void setOrderOldprice(BigDecimal orderOldprice) {
        this.orderOldprice = orderOldprice;
    }

    public BigDecimal getOrderNewprice() {
        return orderNewprice;
    }

    public void setOrderNewprice(BigDecimal orderNewprice) {
        this.orderNewprice = orderNewprice;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public Long getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Long orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Long getOrderPayStatus() {
        return orderPayStatus;
    }

    public void setOrderPayStatus(Long orderPayStatus) {
        this.orderPayStatus = orderPayStatus;
    }

    public Long getOrderShipStatus() {
        return orderShipStatus;
    }

    public void setOrderShipStatus(Long orderShipStatus) {
        this.orderShipStatus = orderShipStatus;
    }

    public Long getOrderReceiptStatus() {
        return orderReceiptStatus;
    }

    public void setOrderReceiptStatus(Long orderReceiptStatus) {
        this.orderReceiptStatus = orderReceiptStatus;
    }

    public Long getOrderEvaluationStatus() {
        return orderEvaluationStatus;
    }

    public void setOrderEvaluationStatus(Long orderEvaluationStatus) {
        this.orderEvaluationStatus = orderEvaluationStatus;
    }

    @Override
    public String toString() {
        return "GoodsOrder{" +
                "orderId='" + orderId + '\'' +
                ", orderPatientId='" + orderPatientId + '\'' +
                ", orderGoodsId='" + orderGoodsId + '\'' +
                ", orderGoodsAttributes=" + orderGoodsAttributes +
                ", orderGoodsCount='" + orderGoodsCount + '\'' +
                ", orderOldprice=" + orderOldprice +
                ", orderNewprice=" + orderNewprice +
                ", orderTime=" + orderTime +
                ", goodsName='" + goodsName + '\'' +
                ", orderStatus=" + orderStatus +
                ", orderPayStatus=" + orderPayStatus +
                ", orderShipStatus=" + orderShipStatus +
                ", orderReceiptStatus=" + orderReceiptStatus +
                ", orderEvaluationStatus=" + orderEvaluationStatus +
                ", orderConfirmReceipt=" + orderConfirmReceipt +
                '}';
    }
}
